
class SysConfig:

    def __init__(self,filterWordsPath=None,undonePathExcel=[],finishPathExcel=[]):
        # 关键词过滤
        self.filterWordsPath= filterWordsPath
        self.filterWords=set()
        self.undonePathExcel = undonePathExcel
        self.finishPathExcel = finishPathExcel
        self.loadFilterPath()

    def loadFilterPath(self):
        if self.filterWordsPath==None:
            return
        with open(self.filterWordsPath, 'r',encoding="UTF-8-sig") as f:
            lists = f.readlines()
        for i in range(0, len(lists)):
            self.filterWords.add(lists[i].strip('\n').strip())